package com.linh.web.db;

import java.util.List;

public interface DataAccessObject {

	<Entity> void save(Entity e);

	<Entity> void delete(Entity e);

	<Key, Entity> Entity get(Key id, String idFieldName, Class<Entity> klass);

	<Entity> List<Entity> getAll(Class<Entity> klass);
}
